#include "algorithm.h"

Algorithm::Algorithm(QObject *parent) :
    QThread(parent)
{
    testBox = NULL;
}

Algorithm::~Algorithm()
{
    if (testBox)
    {
        delete testBox;
    }
}

void Algorithm::setGrapher(CSGGrapher *g, Box *b, int t)
{
    grapher = g;
    testBox = new StarTestBox(b);
    type = t;
}
